-- GENERATED SPELL FOR [Nazzivus Felsworn] --


function spell0_17339(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(11962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17339', 17000, 1)
end

function spell1_17339(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17339', 3000, 1)
end

function Sorts_17339(pUnit, Event)
local choix_sorts_17339 = math.random(0, 1)
if choix_sorts_17339 == 0 then
pUnit:RegisterEvent('spell0_17339', 1, 1)
end
if choix_sorts_17339 == 1 then
pUnit:RegisterEvent('spell1_17339', 1, 1)
end
end

function mob17339_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17339', math.random(1500, 3000), 1)
end

function mob17339_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17339_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17339_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17339, 1, 'mob17339_Action')
RegisterUnitEvent(17339, 2, 'mob17339_Leave')
RegisterUnitEvent(17339, 3, 'mob17339_Kill')
RegisterUnitEvent(17339, 4, 'mob17339_Die')
